package rrrmai.service;

import retrofit2.Retrofit;

/**
 * Created by summer on 2018/2/9.
 */

public class APIServiceImpl implements APIService{

    Retrofit retrofit;

    public APIServiceImpl(Retrofit retrofit) {
        this.retrofit = retrofit;
    }

    @Override
    public <T> T getService(Class<T> t) {
        T tt = retrofit.create(t);
        return tt;
    }
}
